﻿using log4net;
using log4net.Config;
using log4net.Repository.Hierarchy;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace tcpserver
{
    internal class Program
    {
       private static  ILog logger = log4net.LogManager.GetLogger("tcpserver.Program");
        static void Main(string[] args)
        {
            var logRepository = LogManager.GetRepository(System.Reflection.Assembly.GetEntryAssembly());
            XmlConfigurator.Configure(logRepository, new FileInfo("log4net.config"));

            //logger.Info("Application is starting...");


            //logger.Info("hello");
            //long currentTicks = DateTime.Now.Ticks;
            //DateTime dtFrom = new DateTime(1970, 1, 1, 0, 0, 0, 0);
            //long currentMillis = (currentTicks - dtFrom.Ticks) / 10000;
            //Console.WriteLine(currentMillis);

            //byte[] result = TestData1.GetTest1();

            //  CreateDataService.Instance.Start();

            SocketService socketService = new SocketService();
            socketService.Create();

            
            Console.WriteLine("点击输入任意数据回车退出程序......");
            Console.ReadKey();

        }
    }
}
